package com.lkj.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.lkj.model.Lkj;
import com.lkj.model.Train;
import org.springframework.stereotype.Service;

import com.lkj.dao.ClientMapper;
import com.lkj.model.Video;
import com.lkj.service.ClientService;
import com.lkj.utils.PageUtil;

@Service
public class ClientServiceImpl implements ClientService {

	@Resource
	private ClientMapper clientDao;
	
	public int getTotalRows(PageUtil map) {
		return clientDao.getTotalRows(map);
	}

	public List<Video> getVideos(PageUtil pageUtil) {
		return clientDao.getVideos(pageUtil);
	}

	public List<Video> videoDetail(String id) {
		// TODO Auto-generated method stub
		return clientDao.videoDetail(id);
	}

	public List<Lkj> getLkjInfo(String id) {
		return clientDao.getLkjInfo(id);
	}

	public List<Train> getTrainInfo() {
		return clientDao.getTrainInfo();
	}

	public List<Train> getTrainSInfo() {
		return clientDao.getTrainSInfo();
	}

}
